package com.kgc.kmall.service;

import com.kgc.kmall.bean.PmsSkuInfo;

import java.math.BigDecimal;
import java.util.List;

public interface SkuService {

    int saveSkuInfo(PmsSkuInfo pmsSkuInfo);

    PmsSkuInfo selectBySkuId(Long skuId);


    List<PmsSkuInfo> seleByViews(Long spuId);

    //es使用,查询所有sku商品信息
    List<PmsSkuInfo> getAllSku();

    boolean checkPrice(Long productSkuId, BigDecimal price);
}
